package com.appkubes.mall.restful.application.activity.goods.service.impl;

import com.appkubes.mall.core.service.impl.BaseMallActivityGoodsServiceImpl;
import com.appkubes.mall.restful.application.activity.goods.dao.ActivityGoodsDao;
import com.appkubes.mall.restful.application.activity.goods.entity.dto.DdqListDTO;
import com.appkubes.mall.restful.application.activity.goods.entity.vo.DdqListVO;
import com.appkubes.mall.restful.application.activity.goods.service.ActivityGoodsService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Lin Jiaming
 * @Date: 2020/3/7 11:15
 * @Description:
 */
@Service
public class ActivityGoodsServiceImpl extends BaseMallActivityGoodsServiceImpl implements ActivityGoodsService {

    @Autowired
    ActivityGoodsDao activityGoodsDao;

    @Override
    public List<DdqListDTO> ddqList(DdqListVO ddqListVO) {
        Page page = new Page(ddqListVO.getPage(),ddqListVO.getSize());
        return activityGoodsDao.DdqList(page,ddqListVO.getStartTime(),ddqListVO.getEndTime());
    }
}
